package com.aidex.system.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
/**
 * 货品清单对象 cargo_detail
 * @author jmy
 * @email jmyinjg@163.com
 * @date 2021-10-06
 */
@Data
public class CargoDetail extends BaseEntity<CargoDetail>
{
    private static final long serialVersionUID = 1L;

    /** 1 X光机难以辨识 2 疑似风险 3 含隐含性危险品 */
    @Excel(name = "清单类型", type = Excel.Type.EXPORT, dictType = "cargo_list_type")
    private Integer type;

    /** 关键词 */
    @Excel(name = "关键词")
    @NotBlank(message = "关键词不允许为空")
    private String keywords;

    /** 特货代码 */
    @Excel(name = "特货代码")
    private String specialCode;

    /** 数据来源1 人工维护 2 优化建议 */
    @Excel(name = "数据来源1 人工维护 2 优化建议", type = Excel.Type.EXPORT)
    private Integer source;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 状态 0 未审核 1 审核通过 2 审核拒绝 */
//    @Excel(name = "状态 0 未审核 1 审核通过 2 审核拒绝", dictType = "cargo_detail_status")
    private Integer status;

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }

    public void setSpecialCode(String specialCode) 
    {
        this.specialCode = specialCode;
    }

    public String getSpecialCode() 
    {
        return specialCode;
    }

    public void setSource(Integer source) 
    {
        this.source = source;
    }

    public Integer getSource() 
    {
        return source;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("type", getType())
            .append("keywords", getKeywords())
            .append("specialCode", getSpecialCode())
            .append("source", getSource())
            .append("status", getStatus())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
